<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../../res/layui/css/layui.css">
</head>
<body>
<textarea id="demo" style="display: none;"></textarea>
<script src="../../../res/layui/layui.js"></script>
<script>
    layui.use('layedit', function(){
        var layedit = layui.layedit;
        layedit.build('demo'); //建立编辑器
    });
</script>
</body>
</html>